package pl.example.domain;

import javax.persistence.Id;

public class Earing {
	@Id
	public Long id;

	public String name;

	public Earing() {
	}

	@Override
	public String toString() {
		return new StringBuffer().append(id).append(" ").append(name)
				.append(" ").toString();
	}

	public Earing(String name) {
		super();
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
